Event Handling

Catch Selected Index Changed Event in a Table Panel

Description
This customization shows how to catch a selected index changed event in a details table.
Variables
Record Control Class
Select the record control class of details table
Dropdown List Control
Select a Dropdown field in the details table that needs index changed event handler
Applies to
RecordControl class
Code
 
''' 
''' This sub sets up a event handler for a index changed event.
''' 
Private Sub RecordControl_Load(ByVal sender As Object, _
    ByVal e As System.EventArgs) Handles MyBase.Load

    Me.${Dropdown List Control}.AutoPostBack = True
    AddHandler ${Dropdown List Control}.SelectedIndexChanged, _
    AddressOf Me.${Dropdown List Control}_SelectedIndexChanged
   
End Sub

 
Applies to
RecordControl class
Code
 
''' 
''' This sub handles the selected index changed event.
''' 
Public Sub ${Dropdown List Control}_SelectedIndexChanged(ByVal sender As Object, _
        ByVal e As System.EventArgs)

    ' Add business logic here to handle selected index changed event
    
End Sub
     

Terms of Service Privacy Statement